
<div class="col-md-4 d-none d-sm-none d-md-block">
    <h2 class="mt-2  text-success ">热门排行</h2>
    <ul class="list-group" id="hot">
        {volist name="$hot" id="h"}
        <li class="list-group-item">
            <span ><a style="color: #000;" href="{:url('index/details',['id'=>$h.id])}">{$h.title}</a></span>
            <span class="float-right text-muted">点击量:{$h.pv}</span>
        </li>
        {/volist}
    </ul>
</div>
<script>
    $('#hot li').eq(0).addClass('active');
</script>